package com.liferay.service.impl;

import java.util.List;

import com.liferay.dao.RegisterSubjectDao;
import com.liferay.dao.impl.RegisterSubjectDaoImpl;
import com.liferay.model.Subject;
import com.liferay.service.RegisterSubjectService;

public class RegisterSubjectServiceImpl implements RegisterSubjectService {

	public RegisterSubjectDao registerSubjectDao;

	public RegisterSubjectServiceImpl() {
		registerSubjectDao = new RegisterSubjectDaoImpl();
	}

	@Override
	public List<Subject> getListSubjectOpen(long userId) {
		return registerSubjectDao.getListSubjectOpen(userId);
	}

	@Override
	public boolean registerSubject(Subject subject) {
		return registerSubjectDao.registerSubject(subject);
	}

	@Override
	public List<Subject> getListSubjectOpenRegister(long userId) {
		return registerSubjectDao.getListSubjectOpenRegister(userId);
	}

	@Override
	public boolean deleteSubject(Subject subject) {
		return registerSubjectDao.deleteSubject(subject);
	}

	@Override
	public List<Subject> getListSubjectOpenRegisterByEmail(String email) {
		return registerSubjectDao.getListSubjectOpenRegisterByEmail(email);
	}

	@Override
	public boolean updateSubjectMark(Subject subject) {
		return registerSubjectDao.updateSubjectMark(subject);
	}

}
